Module: MetaModel | .\src\TW\UML\MetaModel.py | |||||||
---|---|---|---|---|---|---|---|---|
The UML 1.3 Metamodel, expressed as a Structural AspectThis module's code was originally generated from a non-normative XML representation of the UML 1.3 Metamodel, supplied as part of the Novosoft UML (nsuml) toolkit. Previous versions of TransWarp used the XML representation directly, and only generated the class structure in memory, without actually creating any Python source code. However, with the advent of TransWarp's relatively new "module inheritance" capability, it is now computationally cheaper by at least an order or two of magnitude to convert such metamodels to Python source code, and then inherit from the module, rather than computationally combine class definitions. It's also somewhat more flexible, in that it allows you to make use of any technique you like to generate Python source code for metamodels! There is little of direct interest for the human reader in this module's source; a brief, one-time survey will probably suffice if you wish to get the picture of how a metamodel can be represented in code for use with TransWarp. Oh, one item of note for the user... in the enumerations and
element/feature names, Python reserved words have had an
|